home *** CD-ROM | disk | FTP | other *** search
- /****h *AmigaTalk/AddedPrimitives.doc [1.5] ************************
- **
- ** Herein is described the Primitives added by moi.
- **
- ********************************************************************
- */
-
- /* Primitive 159 is not used by the original system code,
- ** therefore it will be used to send Class & Method info to
- ** the Main program listview gadgets in ATWnd
- */
-
- /* Primitives 180 - 189 are for Intuition: */
-
- /* Screen primitives: */
-
- 180 0 titlestring -- CloseScreen
- 180 1 screentype titlestring -- OpenScreen
- 180 2 getwhichpart titlestring -- GetScreenPart
- 180 3 setwhichpart whatvalue titlestring -- SetScreenPart
- 180 4 FuncName titlestring -- ExecScreenFunc
- 180 5 num_lines titlestring -- PullScreenUp
- 180 6 num_lines titlestring -- PushScreenDown
- 180 7 titlestring -- RedrawScreen
- 180 8 titlestring -- ReOpenScreen
- 180 9 screentype titlestring -- AllocateScreen
-
- ScreenType: 32-bit integer that describes the DisplayModeID
- WARNING!! There is no error checking done on this number.
-
- GetWhichPart: 0 = LeftEdge, 1 = TopEdge, 2 = Width, 3 = Height,
- 4 = DetailPen, 5 = BlockPen, 6 = Flags, 7 = *Font, 8 = *Title,
- 9 = Depth, 10 = ViewModes, 11 = Type, 12 = *BitMapName.
-
- SetWhichPart: 0 = LeftEdge, 1 = TopEdge, 2 = Width, 3 = Height,
- 4 = DetailPen, 5 = BlockPen, 7 = *Font, 8 = *Title,
- 9 = Depth, 10 = ViewModes, 11 = Type, 12 = *BitMapName.
-
- WhatValue: integer or string ONLY!!
-
- FuncName: DisplayBeep, ScreenToBack, ScreenToFront, TurnOffTitle,
- ShowTitle.
-
- /* Window primitives: */
-
- 181 0 windowtitle -- CloseWindow
- 181 1 screentitle windowtitle -- OpenWindow
- 181 2 getwhichpart windowtitle -- GetWindowPart
- 181 3 setwhichpart whatvalue windowtitle -- SetWindowPart
- 181 4 FuncName0 windowtitle -- ExecWindowFunc0
- 181 5 FuncName1 Arg1 windowtitle -- ExecWindowFunc1
- 181 6 FuncName2 Arg1 Arg2 windowtitle -- ExecWindowFunc2
- 181 7 bodytext postext negtext width height windowtitle -- AutoRequest
- 181 8 spritename height width xoff yoff windowtitle -- SetPointer
- 181 9 gadgetname type windowtitle -- AddGadget
- 181 10 gadgetname type windowtitle -- RemoveGadget
- 181 11 TRUE | FALSE windowtitle -- ReportMouse
- 181 12 oldtitle newtitle -- ChangeTitle
- 181 13 screentitle windowtitle -- AllocateWindow
- 181 14 itextname xoffset yoffset windowtitle -- PrintIText
- 181 15 windowtitle -- ReOpenWindow
- 181 16 windowtitle -- Handle_Intuition
-
- GetWhichPart: 0 = LeftEdge, 1 = TopEdge, 2 = Width, 3 = Height,
- 4 = DetailPen, 5 = BlockPen, 6 = Flags, 7 = IDCMPFlags,
- 8 = MouseX, 9 = MouseY, 10 = *Title, 11 = ReqCount,
- 12 = PtrWidth, 13 = PrtHeight, 14 = XOffset, 15 = YOffset,
- 16 = *ScreenTitle.
-
- SetWhichPart: 0 = LeftEdge, 1 = TopEdge, 2 = Width, 3 = Height,
- 4 = DetailPen, 5 = BlockPen, 6 = Flags, 7 = IDCMPFlags,
- 8 = MinWidth, 9 = MinHeight, 10 = MaxWidth, 11 = MaxHeight,
- 12 = *1stGadgetName, 13 = *CheckMarkImageName,
- 14 = *BitMapName.
-
- WhatValue: integer or string ONLY!!.
-
- FuncName0: BeginRefresh, EndRefresh, RemakeDisplay, RethinkDisplay,
- RemoveDMRequest, WindowToBack, WindowToFront, RemoveMenuStrip,
- RefreshGadgets.
-
- FuncName1: ShowRequester( RequesterName ), AddDMRequest( DMRequesterName ),
- AddMenuStrip( MenuName ).
-
- FuncName2: MoveWindow( DeltaX, DeltaY ), SetWindowSize( DeltaX, DeltaY).
-
- Type: 0 = Boolean, 1 = String, 2 = Proportional.
-
-
- /* Menu primitives: */
-
- 182 0 type menuname -- RemoveM
- 182 1 type menuname -- AddM
- 182 2 whichpart type menuname -- GetPartM
- 182 3 whichpart whatvalue type menuname -- SetPartM
- 182 4 windowtitle menuname -- SetParent
-
- Type: 0 = Menu, 1 = MenuItem & 2 = SubItem.
-
- For Menus,
- WhichPart: 0 = LeftEdge, 1 = TopEdge, 2 = Width, 3 = Height, 4 = Flags,
- 8 = *NextMenu, 9 = *FirstItem,
-
- Only for GetPartM:
-
- 13 = *MenuName.
-
-
- For MenuItems & SubItems,
-
- WhichPart: 0 = LeftEdge, 1 = TopEdge, 2 = Width, 3 = Height, 4 = Flags,
- 5 = MutualExclude, 6 = Command, 7 = *NextItem,
- 9 = *FirstItem, 10 = *ItemFill, 11 = *SelectFill, 12 = *SubItem.
-
- WhatValue: integer or string ONLY!!
-
-
- /* Gadget primitives: */
-
- 183 0 type gadgetname -- RemoveGadget
- 183 1 type gadgetname -- AddGadget
- 183 2 type whichpart gadgetname -- GetGadgetPart
- 183 3 type whichpart whatvalue gadgetname -- SetGadgetPart
- 183 4 flags hpot vpot hbody vbody windtitle gadgetname -- ModifyProp
- 183 5 newsize gadgetname -- ChangeBufferSize
- 183 6 flags hpot vpot hbody vbody gadgetname -- SetPropValues
- 183 7 type windowtitle gadgetname -- SetParent
-
- WhichPart: 0 = LeftEdge, 1 = TopEdge, 2 = Width, 3 = Height, 4 = Flags,
- 5 = Activation, 6 = GadgetType, 7 = GadgetID,
- 8 = *NextGadgetName, 9 = *GadgetITextName, 10 = *RenderName,
- 11 = *SelectName, 12 = BufferSize, 13 = PropFlags,
- 14 = HPot, 15 = VPot, 16 = HBody, 17 = VBody.
-
- Type: 0 = Boolean, 1 = String, 2 = Proportional.
-
-
- /* Color Register primitives: */
- 184 0 cmapname colorsavefile -- FreeColorMap
- 184 1 cmapname numberofcolors -- GetColorMap
- 184 2 windowtitle numberofcolors colorfile -- LoadRGB4
- 184 3 type source whichentry -- GetRGB4
- 184 4 windowtitle whichentry red green blue -- SetRGB4
- 184 5 type source whichentry red green blue -- SetRGB4CM
- 184 6 source destination sourcetype -- CopyMap
- 184 7 windowTitle ColorSaveFile -- SaveRGBs
-
- Type: 0 = ColorMapName, 1 = WindowTitle
- Source: ColorMapName or WindowTitle
- NumberOfColors: a power of 2 range: 2 to ??? (currently 32)
- ColorFile: variable number of UWORDS.
-
-
- /* Requester primitives: */
-
- 185 0 requestername -- RemoveRequester
- 185 1 requestername -- AddRequester
- 185 2 whichpart requestername -- GetRequesterPart
- 185 3 whichpart whatvalue requestername -- SetRequesterPart
- 185 4 gadgetname requestername -- SetParent
-
- WhichPart: 0 = LeftEdge, 1 = TopEdge, 2 = Width, 3 = Height,
- 4 = RelLeft, 5 = RelTop, 6 = Flags, 7 = BackFill,
- 8 = *ReqText, 9 = *gadgetname, 10 = *bordername,
- 11 = *bitmapname.
-
-
- /* Alert primitives: */
-
- 186 0 alertname -- RemoveAlert
- 186 1 alertnumber alertheight alertstring alertname -- AddAlert
- 186 2 whichpart alertname -- GetAlertPart
- 186 3 whichpart whatvalue alertname -- SetAlertPart
- 186 4 alertname -- AlertDisplay
-
- alertstring is 128 characters maximum & will get the alertnumber will
- be pre-pended to it.
-
-
- /* Border primitives: */
-
- 187 0 bordername -- RemoveBorder
- 187 1 num_pts bordername -- AddBorder
- 187 2 whichpart bordername -- GetBorderPart
- 187 3 whichpart whatvalue bordername -- SetBorderPart
- 187 4 whichpoint newx newy bordername -- SetBorderPoint
- 187 5 windowTitle bordername -- SetParent
-
- WhichPart: 0 = LeftEdge, 1 = TopEdge, 2 = FrontPen, 3 = BackPen,
- 4 = DrawMode, 5 = Count, 6 = *NextBorderName.
-
-
- /* IText & Font primitives: */
-
- 188 0 itextname -- RemoveIText
- 188 1 textstring itextname -- AddIText
- 188 2 whichpart itextname -- GetITextPart
- 188 3 whichpart whatvalue itextname -- SetITextPart
- 188 4 fontname -- RemoveFont
- 188 5 fontname -- AddFont
- 188 6 whichfontpart fontname -- GetFontPart
- 188 7 whichfontpart whatfontvalue fontname -- SetFontPart
- 188 8 windowtitle itextname -- SetParent
- 188 9 itextname -- GetTextLength
-
- WhichPart: 0 = FrontPen, 1 = BackPen, 2 = DrawMode, 3 = LeftEdge,
- 4 = TopEdge, 5 = *ITextFontName, 6 = *IText, 7 = *NextTextname.
-
- WhichFontPart: 0 = ta_Name, 1 = ta_YSize, 2 = ta_Style, 3 = ta_Flags
-
- WhatValue: Integers only!!
-
- WhatFontVlaue: Integers or a FontName string.
-
-
- /* BitMap primitives: */
-
- 189 0 bitmapname -- RemoveBitMap
- 189 1 Width Height Depth bitmapname -- AddBitMap
- 189 2 WhichPart bitmapname -- GetBitMapPart
- 189 3 WhichPart WhatValue bitmapname -- SetBitMapPart
- 189 4 datafilename bitmapname -- SetBitMapData
- 189 5 datafilename bitmapname -- WriteBitMap
-
- WhichPart: 0 = BytesPerRow, 1 = Rows, 2 = Flags, 3 = Depth
-
-
- 190 0 libname -- CloseLibrary
- 190 1 libname -- OpenLibrary
-
- 191 -- Ports
- 192 -- Tasks
- 193 -- Processes
- 194 -- Memory
- 195 -- Lists
- 196 -- Interrupts
- 197 -- Semaphores
- 198 -- Signals
- 199 -- Exceptions
-
- /* Simple Graphics primitives: */
-
- 200 0 windowtitle pen# -- SetAPen
- 200 1 windowtitle pen# -- SetBPen
- 200 2 windowtitle pen# -- SetOPen
- 200 3 windowtitle mode -- SetDrMd
- 200 4 windowtitle x y -- Move
- 200 5 windowtitle x y -- Draw
- 200 6 windowtitle x1 y1 x2 y2 -- DrawLine
- 200 7 windowtitle x1 y1 x2 y2 -- DrawBox
- 200 8 windowtitle x y radius -- DrawCircle
- 200 9 windowtitle x y r1 r2 -- DrawEllipse
- 200 10 windowtitle bordername -- DrawPolygon
- 200 11 windowtitle x y -- WritePixel
- 200 12 windowtitle imagename -- RemoveImage
- 200 13 windowtitle width height depth imagename -- AddImage
- 200 14 windowtitle whichpart imagename -- GetImagePart
- 200 15 windowtitle whichpart whatvalue imagename -- SetImagePart
- 200 16 windowtitle xoffset yoffset imagename -- DrawImage
- 200 17 windowtitle datafilename imagename -- SetImagedata
- 200 18 windowtitle imagename -- SetImageParent
-
- WhichPart: 0 = LeftEdge, 1 = TopEdge, 2 = WIdth, 3 = Height, 4 = Depth,
- 5 = *ImageData, 6 = PlanePick, 7 = PlaneOnOff, 8 = *NextImage.
-
-
- /* Area Graphics primitives: */
-
- 201 -- Area
- 202 -- ViewPorts
- 203 -- Views
- 204 -- PlayFields
- 205 -- RastPorts
- 206 -- RasInfo
- 207 -- Layers
- 208 -- Blitter
- 209 -- Copper
-
- /* ARexx primitives: */
-
- 210
- 211
- 212
- 213
- 214
- 215
- 216
- 217
- 218
- 219
-
- /* Device primitives: */
-
- 220 0 cmd channel# channelname -- ActOnAudioChannel
- 220 1 cmd narratorname -- ActOnNarrator
- 221 cmd clipboardname -- ActOnClipboard
- 222 0 cmd consolename -- ActOnConsole
- 222 1 cmd keyboardname -- ActOnKeyboard
- 223 0 cmd gameportname -- ActOnGamePort
- 223 1 cmd inputname -- ActOnInput
- 224 cmd parallelname -- ActOnParallel
- 225 cmd printername -- ActOnPrinter
- 226 cmd SCSIname -- ActOnSCSI
-
- 227 0 buffersize serialname -- CloseSerial
- 227 1 buffersize serialname -- OpenSerial
- 227 2 breakchars serialname -- InitSerial
- 227 3 sync serialname -- ReadSerial
- 227 4 string serialname -- WriteSerial
- 227 5 serialname -- ResetSerial
- 227 6 serialname -- PauseSerial
- 227 7 serialname -- RestartSerial
- 227 8 usec_duration serialname -- SendBreak
- 227 9 serialname -- GetStatus
- 227 10 serialname -- FlushSerial
- 227 11 serialname -- ClearReadBuffer
- 227 12 sync -- SetSyncType
- 227 13 0 baud serialname -- SetBaud -:
- 227 13 1 datasize serialname -- SetDataSize |
- 227 13 2 #stops serialname -- SetStops \
- 227 13 3 duration serialname -- SetBreakLength > SetParameter
- 227 13 4 rbufsize serialname -- SetRBuffSize /
- 227 13 5 newflags serialname -- SetFlags |
- 227 14 termchars serialname -- SetTerminators
- 227 15 parityType On|Off serialname -- SetParity
-
- parityType: 0 = Space, 1 = Mark, 2 = Even & 3 = Odd.
- On|Off: 0 = Off, >0 = On
- sync: 0 = No Sync, >0 = Sync
- breakchars = termchars = 8 bytes in descending order representing the
- characters that the serial channel should
- recognize as EOF characters.
-
- All commands (except Read & Write) use BeginIO with IOF_QUICK set, regardless
- of the state of the SyncType.
-
-
- 228 cmd timevalue timername -- ActOnTimer
- 229 cmd trackdiskname -- ActOnTrackdisk
-
- /* Animation Graphics primitives: */
-
- 230
- 231
- 232
- 233
- 234
- 235
- 236
- 237
- 238
- 239
-
- /* IFF primitives: 240 through 244: */
-
- 240 0 IFFName -- CloseIFF
- 240 1 IFFName -- OpenIFF
- 240 2 -- FreeIFF
- 240 3 -- AllocIFF
-
- 241 0 InitIFF
- 241 1 InitIFFasDOS
- 241 2 InitIFFasClip
-
- 242 0 OpenClipboard
- 242 1 ParseIFF
- 242 2 ReadChunkBytes
- 242 3 ReadChunkRecords
- 242 4 StopChunk
- 242 5 CurrentChunk
- 242 6 PropChunk
- 242 7 FindProp
- 242 8 CollectionChunk
- 242 9 FindCollection
- 242 10 StopOnExit
- 242 11 EntryHandler
- 242 12 ExitHandler
-
- 243 0 PushChunk
- 243 1 PopChunk
- 243 2 ParentChunk
-
- 244 0 AllocLocalItem
- 244 1 LocalItemData
- 244 2 StoreLocalItem
- 244 3 StoreItemInContext
- 244 4 FindPropContext
- 244 5 FindLocalItem
- 244 6 FreeLocalItem
- 244 7 SetLocalItemPurge
-
- /* GadTools primitives: 245 */
-
- 245
-
- /* AmigaDOS primitives: 246 */
-
- 246
-
- /* Unassigned: */
-
- 247
- 248
- 249
- 250
- 251
- 252
- 253
- 254
- 255
-